@import '../../theme/index';

$height: 28px;
.el-tabs {
  border: none;

  .el-tabs__header {
    border-bottom: 1px solid $global-border-color-base;

    .el-tabs__item {
      background-color: rgba(62, 158, 255, 0.1);
      height: $height;
      line-height: $height;
      font-size: 12px;
      color: $global-font-color-secondary;
      margin-right: -1px;
      padding: 0 12px;
      border: 1px solid $global-border-color-base;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      &:nth-child(2) {
        padding-left: 12px;
      }

      &:first-child {
        border: 1px solid $global-border-color-base;
      }

      &:last-child {
        padding-right: 12px;
        margin-right: 0;
      }

      &.is-active {
        background-color: $global-main-color;
        color: $global-font-color;
        border: 1px solid $global-main-color;
      }
    }

    .el-tabs__new-tab {
      color: $global-font-color-secondary;

    }

    .el-tabs__nav-wrap {
      &::after {
        height: 1px;
      }

      &.is-scrollable {
        padding: 0 12px;
      }
    }
  }

  .el-tabs__nav-next, .el-tabs__nav-prev {
    line-height: $height;
  }

  &.el-tabs--card > .el-tabs__header {
    margin-bottom: 0;

    .el-tabs__nav {
      border: none;
    }

  }

  &.el-tabs--border-card > .el-tabs__header {
    background-color: $global-bg-color-secondary;
  }

  &.el-tabs--left.el-tabs--border-card {
    .el-tabs__header.is-left {
      background-color: $global-bg-color-secondary;
      border-right: 1px solid #445e82;
    }

    .el-tabs__item.is-left.is-active {
      border-top: none;
      border-bottom: none;
      border-left: 3px solid $global-main-color;
    }
  }
}
